package com.hai.service.impl;

import com.hai.entity.Department;
import com.hai.mapper.DepartmentMapper;
import com.hai.service.DepartmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author NieChangan
 * @since 2022-05-21
 */
@Service
public class DepartmentServiceImp extends ServiceImpl<DepartmentMapper, Department> implements DepartmentService {



    @Override
    public List<Department> getDepartmentNameAndCount() {
        return this.baseMapper.getDepartmentNameAndCount();
    }
}
